package com.xidian.zhiancloud.service.warnset;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xidian.zhiancloud.dao.warnset.WarnMangerMapper;

@Service
public class WarnMangerService {

	@Autowired
	WarnMangerMapper warnmanagerMapper;
	
	public List<Map<String,String>> getLeveList()
	{
		return warnmanagerMapper.getLeveList();
	}
	
	public int updateWarnLevel(Integer id,String jobids)
	{
		return warnmanagerMapper.updateWarnLevel(id, jobids);
	}
	
	public List<Map<String,String>> getWarnSetList(Integer companyid)
	{
		return warnmanagerMapper.getWarnSetList(companyid);
	}
	
	public List<Map<String,String>> getAddWarnSetList(Integer companyid)
	{
		return warnmanagerMapper.getAddWarnSetList(companyid);
	}
	public int updateWarnValue(Integer id,Integer value1,Integer value2,Integer value3,Integer value4)
	{
		return warnmanagerMapper.updateWarnValue(id, value1, value2, value3, value4);
	}
	public int deleteWarnSet(Integer id)
	{
		return warnmanagerMapper.deleteWarnSet(id);
	}
	
	public int addWarnSet(Integer id)
	{
		return warnmanagerMapper.addWarnSet(id);
	}
}
